package com.sicilin.common.enums;

public enum ResultStateEnum {
    SUCCESS("success"),ERROR("error");

    private String message;
    ResultStateEnum(String message){
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public static ResultStateEnum instances(Integer code){
        if(code == null || code <= 0){return ERROR;}
        return SUCCESS;
    }
}
